const service = require('../service/detail.service')
class DetailController {
  async getDetailById(ctx, next) {
    const id = ctx.query.id
    const result = await service.getDetailById(id)
    ctx.body = {
      status: 200,
      data: result
    }
  }
}

module.exports = new DetailController()